package com.wanglin.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wanglin.reggie.dto.DishDto;
import com.wanglin.reggie.entity.Dish;

import java.util.List;

/**
 * DishService
 *
 * @author 王林
 * @version 1.0
 * @description
 * @date 2025/5/29 03:22
 * @projectName reggie_take_out
 * @package com.wanglin.reggie.service
 * @className com.wanglin.reggie.service.DishService
 * @copyright Copyright 2020 Theofanis, Wang Lin All rights reserved.
 */
public interface DishService extends IService<Dish> {

    // 保存带有口味信息的菜品
    public void saveWithFlavor(DishDto dishDto);

    // 根据id查询菜品信息和口味信息
    public DishDto getByIdWithFlavor(Long id);

    // 根据口味更新菜品信息
    public void updateWithFlavor(DishDto dishDto);

    public void updateStatus(Integer status, List<Long> ids);

    public void deleteByIds(List<Long> ids);
}
